<?php
if ( ! function_exists('calSatisfied'))
{
	function calSatisfied($value1, $value2){
		if($value1 ==0){
			return $value2;
		}
		$first = 1000/$value1;
		$second =  floor($value2/10 * $first);
		return $second;
	}
}
if ( ! function_exists('calSatisfiedText'))
{
	function calSatisfiedText($value1, $value2){
		$result = calSatisfied($value1, $value2);
		if($result > 100){
			return "100%+";
		}else{
			return $result."%";
		}
	}
}
if ( ! function_exists('formatTest3Result'))
{
	function formatTest3Result($value1){
		if($value1 == 100){
			return $value1."%";
		}else{
			return "<span class='blue-result'>".$value1."%</span>";
		}
	}
}